package com.movitech.mobile.cz.base.common.log;

import com.google.gson.Gson;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

import java.util.HashMap;
import java.util.Map;

public class LogRedisUtils {
	public static final Logger log = LoggerFactory.getLogger(LogRedisUtils.class);
	
	public static void logToStach(Class<?> clazz,String functionName,String infoText) {
		Map<String,Object> mapParams = new HashMap<String,Object>();
		mapParams.put("className", clazz);
		mapParams.put("functionName", functionName);
		mapParams.put("infoText", infoText);
		log.info(new Gson().toJson(mapParams));
	}
}

//CustomerLogVO customerLogVO = LogUtil.getCustomerLogVO(request);
//customerLogVO.setLogType(LogUtil.HOME_PAGE_BANNER);
//customerLogVO.setBannerId(LogUtil.getValueOrBlank(request.getHeader("bannerId")==null?widgetLog.getBannerId():request.getHeader("bannerId")));
//customerLogVO.setStatus("1");
//BannerLog.log.info(new Gson().toJson(customerLogVO));